Skip to content

docs: add HTTP API, SDK, and operations/policy reference docs#10

Merged
Gsbreddy merged 1 commit into
mainfrom
cursor/codebase-documentation-alignment-58d4
May 2, 2026
Merged

docs: add HTTP API, SDK, and operations/policy reference docs#10
Gsbreddy merged 1 commit into
mainfrom
cursor/codebase-documentation-alignment-58d4

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 2, 2026

Summary

Add three new reference documents for subsystems introduced in the v1.1 rollout (HTTP routes, Python SDK, flightdeck.operations) that had no dedicated documentation. Update README.md and DEVELOPMENT.md to link them.

Why

The v1.1 commit (c8e2abc) shipped FlightdeckClient/AsyncFlightdeckClient, a structured server routes layer, and operations.py as the unified action backend. These are now the primary integration points for teams automating release governance, but they had no usage documentation — developers had to read source code to understand request shapes, auth requirements, confidence tiers, or error handling.

Changes

  • docs/http-api.md — all /v1/* routes with request/response shapes, auth model (loopback vs. Bearer token), confidence level table, Swagger UI pointer, error format.
  • docs/sdk.mdFlightdeckClient / AsyncFlightdeckClient usage guide: constructor params, authentication, all public methods with parameter descriptions, error handling, custom httpx.Client injection, constraints.
  • docs/operations-and-policy.md — operations layer architecture (single code path shared by CLI/HTTP/SDK), compute_diff internals (cost formula, cross-agent invariant), promote/rollback flow (first-promotion path, audit ledger, pointer atomicity), Policy model field reference, confidence tiers, zero-threshold overrides, SQLite schema summary, common errors + remedies table.
  • README.md — new "Documentation" links for all three files.
  • DEVELOPMENT.md — added references to http-api.md and sdk.md in the Verify section.

Validation

  • uv sync --frozen --extra dev
  • uv run python -m ruff check src tests — all checks passed
  • uv run python -m pytest — 73 passed
  • No models/schemas touched — schema drift check not required
  • No web/src/ changes — static build not required

Schema / Storage Impact

  • None

Risk

Documentation only — no Python source, schema, or static asset changes.

Notes

All documented behavior is verified against the actual source: operations.py, ledger.py, models.py, server/routes/, and sdk/client.py.

Open in Web View Automation 

Add three new reference documents covering subsystems introduced in the
v1.1 rollout that had no dedicated documentation:

- docs/http-api.md: all /v1/* routes with request/response shapes,
  auth model (loopback vs. Bearer token), confidence level table,
  error format, and common error codes.

- docs/sdk.md: FlightdeckClient and AsyncFlightdeckClient usage guide
  covering constructor params, authentication, all public methods,
  error handling, custom httpx client injection, and constraints.

- docs/operations-and-policy.md: operations layer architecture
  (single code path shared by CLI/HTTP/SDK), compute_diff internals
  (cost formula, cross-agent invariant), promote/rollback flow
  (first-promotion path, audit ledger, pointer atomicity), Policy
  model, confidence tiers, zero-threshold overrides, and a common
  errors/remedies table.

Update README.md Documentation section to link all three docs.
Update DEVELOPMENT.md Verify section to reference http-api.md and sdk.md.

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
@Gsbreddy Gsbreddy marked this pull request as ready for review May 2, 2026 09:48
@Gsbreddy Gsbreddy merged commit 10540ee into main May 2, 2026
2 checks passed
@Gsbreddy Gsbreddy deleted the cursor/codebase-documentation-alignment-58d4 branch May 2, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants